#include <iostream>
#include <string>
using std::string;
using std::cout;
using std::cin;
using std::endl;

int main()
{
    string s;  // empty string
    cin >> s;  // read whitespace-separated string into s
    cout << s << endl;  // write s to the output
    cout << "The size of " << s << "is " << s.size()
              << " characters, including the newline" << endl;
    string st("The expense of spirit\n");
    cout << "The size of " << st << "is " << st.size()
              << " characters, including the newline" << endl;

    string line;
    // read line at time until end-of-file
    while (getline(cin, line))
          cout << line << endl;
    string str("some string");
    for (string::size_type ix = 0; ix != str.size(); ++ix)
         cout << str[ix] << endl;

    return 0;
}
